package com.ganbo.ms.java8.lambda;

import java.util.Locale;
import java.util.function.Consumer;

/**
 * @author ganbo
 * @date 2022/12/14 20:30
 */
public class ConsumerDemo1 {

    public static void main(String[] args) {

        System.out.println("==========");
        printHello(o1 -> {
            System.out.println(o1.toUpperCase());
        }, o2 -> {
            System.out.println(o2.toLowerCase());
        });

    }

    public static void printHello(Consumer<String> c, Consumer<String> c2) {
        System.out.println("==============");
        c.accept("helLo worLd");
        c2.accept("helLo worLd");
        System.out.println("====end======");
    }
}
